Expand description

BonsaiDb’s offline database implementation.

This crate exposes BonsaiDb’s local database implementation. The Storage type provides its most common functionality by implementing the StorageConnection.

Feature Flags

By default, the full feature is enabled. These features are prefixed by local- when being enabled from the omnibus bonsaidb crate.

  • full: Enables all the flags below
  • cli: Enables the clap structures for embedding database management commands into your own command-line interface.
  • encryption: Enables at-rest encryption.
  • instrument: Enables instrumenting with tracing.
  • multiuser: Enables multi-user support.
  • password-hashing: Enables the ability to use password authentication using Argon2.

Re-exports

pub use argon2;
pub use bonsaidb_core as core;

Modules

Command-line interface helpers.

Configuration options.

Aysnc jobs management for BonsaiDb.

Encryption and secret management.

Structs

A local, file-based database.

A file-based, multi-database, multi-user database engine.

The unique id of a Storage instance.

A subscriber for PubSub messages.

Enums

Errors that can occur from interacting with storage.

Traits

A location to store and restore a database from.